//
//  BaseViewController.h
//  PandaTakeaway
//
//  Created by smufs on 2017/5/17.
//  Copyright © 2017年 李冰. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, ViewControllerStyle) {
    
    ViewControllerStyleDefault = 0, // 黑色
    ViewControllerStyleLight        // 白色
};

@interface BaseViewController : UIViewController

@property (nonatomic, assign) ViewControllerStyle style;

- (void) setWhiteStyleBackBarItem __attribute__((objc_requires_super));
- (void) setWhiteTitleViewItem:(NSString *) title;

/** 设置标题*/
- (void)addTitleViewWithTitle:(NSString *)title;

/** 用图片自定制BarButtonItem*/
- (void)customBarButtonItemWithImg:(NSString *)img action:(SEL)action isLeft:(BOOL)isLeft;

/** 带颜色的标题按钮自定制BarButtonItem*/
- (void)customBarButtonItemWithTitle:(NSString *)title action:(SEL)action isLeft:(BOOL)isLeft color:(UIColor *) color
;

@end
